#pragma once
#include "../stdafx.h"
#include "Manager.h"
#include "../scene/World.h"
namespace SLG
{
	extern LPDIRECT3DDEVICE9 g_pd3dDevice;
	class World;
	class FigureObject
	{
	public:
		FigureObject(World*);
		~FigureObject(void);

		bool LoadFigure();
		bool AddModel(int32,int32,char*,Model*);
		bool AddFigure(int32,int32,const char*,int32,int32,FACE);
		int32 AddTexture(char*,LPDIRECT3DTEXTURE9);
		bool LoadAnim();
		bool ChangeAABB(int32,Sphere);
		HRESULT CreateVetices();
		bool InitMap(Map* map,Model* model,int32 anim);
		void RenderData();
		void RenderFigure(DWORD);
		ModelManager* m_mManager;
		FigureManager* m_fManager;
		TextureManager* m_tManager;
		AnimManager* m_aManager;

		World* m_world;
	};
}